<template>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#1baeae">
        <van-swipe-item v-for="(item, index) of list" :key="index">
            <img :src="item.carouselUrl" alt="" />
            <!-- @click="goTo(item.redirectUrl)" -->
        </van-swipe-item>
    </van-swipe>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
    name:'swipe',
    props: ["list"],
    setup() {
        return {};
    },
});
</script>

<style lang="scss" scoped>
.my-swipe img {
    width: 100%;
}
</style>
